import requests
import json
'''
    更改 ip |x_dog_token  |device_id
'''
# ip = "http://127.0.0.1:7998"
# ip = "http://52.83.100.136:7898"
# ip = "http://test-mars.dev-bp.atcloudbox.com"
# ip = "http://poseidon-service.atcloudbox.com"

# bytepower
# ip = "https://60q8ur7nq7.server.bytepowerapp.cn"
# ip = "https://mars-service.atcloudbox.com/"
x_dog_token = "rWNeSwXwnBbgHvJsXiETchdNYaXKSGsD"
ip = 'http://test-mars.dev-bp.atcloudbox.com'
# ip = 'http://test-poseidon.dev-bp.atcloudbox.com'
# vivo 863542038347750
#  华为 866676049576853

# X-TVU-Code 代表高低价值，0代表低价值，1代表高价值
headers = {'X-Platform': 'Android', 'Content-Type': 'application/json', 'charset':'utf-8',
    "X-Dog-Token": x_dog_token, "X-Version-Code": "1160", "X-TVU-Code": "0", "User-Agent":"okhttp/3.12.0", "Accept-Encoding": "gzip","X-Config-Version":"10041"}




# curl -H "Content-Type:application/json" -X POST -d '{"wechat_name":"葫芦&狐狸"}' http://test-mars.dev-bp.atcloudbox.com/delete_user




def ad_video():  #激励视频上报
    r = requests.post(ip+'/report/ad_video', headers=headers, json={"vendor_id": "kk123131", "ecpm": 30})
    print(r.status_code)
    print(r.text)



ad_video()


